package lnkwe.common.exception;

import com.alibaba.fastjson.JSONObject;

/**
 * 基本异常页面
 */
public class CommonException extends Exception{
    public CommonException(Exception e) {
        super(e);
    }
    public CommonException(String message){
        super(message);
    }
    public JSONObject json(){
        JSONObject dataJSON=new JSONObject();
        dataJSON.put("success",false);
        dataJSON.put("msg",this.getMessage());
        return dataJSON;
    }
}
